<script setup>
const options = ref({
  title: {
    text: '答题统计(个)'
  },
  toolbox: {
    feature: {
      saveAsImage: {}
    }
  },
  legend: {},
  tooltip: {},
  dataset: {
    source: [
      ['product', '总数量', '正确数量', '错误数量'],
      ['单选题', 160, 105, 55],
      ['多选题', 125, 55, 70],
      ['判断题', 65, 45, 20],
      ['简答题', 23, 10, 13]
    ]
  },
  xAxis: { type: 'category' },
  yAxis: {},
  series: [{ type: 'bar' }, { type: 'bar' }, { type: 'bar' }]
})
</script>

<template>
  <Echart width="100%" :options="options" />
</template>

<style lang="scss" scoped></style>
